var fs = require('fs');


var files = fs.readdirSync('assets');
var data = [];
for (var i in files){
	var name =files[i];
	var ext = name.split('.');
	var extimg = ext[ext.length - 1].toLowerCase();
	if(['jpg','png','jpeg'].indexOf(extimg) > -1) {
		data.push({src:"assets/"+name, id:ext[0].toLowerCase()});
	}
}
console.log(JSON.stringify(data));
